package net.wykj.ms.streaming.video;

import java.io.IOException;

import net.wykj.ms.rtp.H263Packetizer;

import android.media.MediaRecorder;

public class H263Stream extends VideoStream {

	public H263Stream(int cameraId) {
		super(cameraId);
		setVideoEncoder(MediaRecorder.VideoEncoder.H263);
		this.packetizer = new H263Packetizer();
	}

	public String generateSessionDescriptor() throws IllegalStateException,
			IOException {

		return "m=video " + String.valueOf(getDestinationPort())
				+ " RTP/AVP 96\r\n" + "b=RR:0\r\n"
				+ "a=rtpmap:96 H263-1998/90000\r\n";

	}

}
